"""
Currently not used, but for future expansion.
"""

import os
import datetime

FROM_EMAIL = 'nobody@criout.com'
QUOTA_EMAIL = []

APP = "/mercyDMS/"
MEDIA = "/static"

SMEDIA = "/static"
HTTPS = 'http://127.0.0.1:8000'

C_TEMPLATES = 'customers'

PHOTOS_DIR = 'photos'
FLV_DIR = 'flv'

CMS_DIR = os.path.join(settings.SPATH, 'static', 'uploaded', 'cms_files')
POD_DIR = os.path.join(settings.SPATH, 'static', 'uploaded', 'podcast')
VERSION_MEDIA = os.path.join(settings.SPATH, 'static_non_public', 'cms_files')
FLV_TEMP = os.path.join(settings.SPATH, 'static_non_public', 'vid_tmp')
FLV_MEDIA = os.path.join(settings.MEDIA_ROOT, FLV_DIR)
PHOTOS_MEDIA = os.path.join(settings.MEDIA_ROOT, PHOTOS_DIR)

PRIVATE_MEDIA_ROOT = os.path.join(settings.SPATH, 'static_non_public')

NOTES_DIR = 'notes/%Y-%m'
USER_PICS = 'user_pics/%Y-%m'
CAPTCHA_DIR = 'captcha'
CMANAGE_PICS = '%cust/cmanage_pics'
 
DEFAULT_PAGE = 'index.html'
DEFAULT_MIME = 'application/octet-stream'
HTML_TYPES = ('.html', '.htm')
PODCAST_TYPES = { '.mp3': 'audio/mpeg', '.m4a': 'audio/x-m4a', '.mp4': 'video/mp4', '.m4v': 'video/x-m4v', '.mov': 'video/quicktime', '.pdf': 'application/pdf' }

KNOWN_TYPES = {
              '.js': 'text/javascript',
              '.txt': 'text/plain',
             }

APP_TEMPLATES = (('Default', 'tmpl'), ('Calendar', 'cal'), ('Directory', 'directory'), 
                 ('Podcast', 'podcast'), ('Photos', 'photos'), ('Blog', 'blog'), 
                 ('Bulletin', 'bbs'), ('Donations', 'donate'), ('Chat Rooms', 'chat'))
                 
OPATH = os.path.join(settings.TPATH, C_TEMPLATES, 'originals')

WEBSIZE = 640, 480
THUMBSIZE = 100, 75
QUALITY = 90

FILENAME_CHARS = ('*', '<', '>', '[', ']', '=', '+', '"', '\\', '/', ',', ':', ';', '?', '|')
FILENAME_UNDERSCORE = (' ', )

TIME_FORMATS = ('%H:%M', '%H:%M:%S', '%I:%M %p')
MONTHS = (("1", "January"), ("2", "February"), ("3", "March"), ("4", "April"), ("5", "May"), ("6", "June"), ("7", "July"), ("8", "August"), ("9", "September"), ("10", "October"), ("11", "November"), ("12", "December"))
YEARS = []

this_year = datetime.date.today().year
for y in range(this_year - 5, this_year + 6):
  YEARS.append(str(y))
  
ALARMS = ['0', '5', '10', '15', '25', '30', '45', '60']

FORUMS_PER_PAGE = 35

POLL_NUM_COLORS = 6

PODCASTS_PER_PAGE = 10

CHAT_COLORS = 6
CHAT_MAX_MESSAGES = 100
CHAT_MAX_CHAR = 255

STATES = ('AA', 'AE', 'AK', 'AL', 'AP', 'AR', 'AS', 'AZ', 'CA', 'CO', 'CT', 'DC', 'DE', 'FL', 'FM', 'GA', 'GU', 'HI', 'IA', 'ID', 'IL', 'IN', 
          'KS', 'KY', 'LA', 'MA', 'MD', 'ME', 'MH', 'MI', 'MN', 'MO', 'MP', 'MS', 'MT', 'NC', 'ND', 'NE', 'NH', 'NJ', 'NM', 'NV', 'NY', 'OH',
          'OK', 'OR', 'PA', 'PR', 'PW', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VA', 'VI', 'VT', 'WA', 'WI', 'WV', 'WY'
          )
          
FORM_DISPLAY_STYLES = (('list', 'List'), ('p', 'Paragraph'), ('table', 'Table'))
FORM_TYPES = (
  ('BooleanField', 'Checkbox'),
  ('CharField', 'Text Field'),
  ('ChoiceField', 'Choice Field'),
  ('DecimalField', 'Decimal Field'),
  ('EmailField', 'E-Mail Field'),
  ('IntegerField', 'Integer Field'),
  ('URLField', 'URL Field')
)

if os.name == 'nt':
  YAMDI = os.path.join(settings.SPATH, 'static_non_public', 'bin', 'yamdi.exe')
  
else:
  YAMDI = os.path.join(settings.SPATH, 'static_non_public', 'bin', 'yamdi')
  
YAMDI = YAMDI + ' -i %in -o %out 1>> %log 2>> %log'

WIRELESS_CARRIERS = (
  ('None', 'None'),
  ('message.alltel.com', 'Alltel'),
  ('txt.att.net', 'AT&T'),
  ('page.att.net', 'AT&T Enterprise Paging'),
  ('myboostmobile.com', 'Boost Mobile'),
  ('mms.mycricket.com', 'Cricket'),
  ('myhelio.com', 'Helio'),
  ('mymetropcs.com', 'MetroPCS'),
  ('qwestmp.com', 'Qwest'),
  ('pcs.rogers.com', 'Rogers'),
  ('messaging.sprintpcs.com', 'Sprint PCS'),
  ('page.nextel.com', 'Sprint Nextel'),
  ('tmomail.net', 'TMobile'),
  ('vtext.com', 'Verizon'),
  ('vmobile.ca', 'Virgin Mobile Canada'),
  ('vmobl.com', 'Virgin Mobile USA'),
)

dev_settings = os.path.join(settings.SPATH, 'ocsettings_dev.py')
if os.path.exists(dev_settings):
  from openchurch.ocsettings_dev import *
